// components/folder/index.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        folder: String,
        index: Number
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        openFolder(e) {
            this.triggerEvent('openFolder', e.currentTarget.dataset.folder);
        },
        deleteFolder(e) {
            this.triggerEvent('deleteFolder', { folder: e.currentTarget.dataset.folder, index: e.currentTarget.dataset.index });
        }
    }
})
